﻿using System;
using System.IO;


namespace Infrastructure
{
    public class TxtLogger:Log
    {
        public override void WriteLog(String fileName)
        {
            try
            {
                var file = new StreamWriter(fileName, false);
                foreach (string t in Record)
                    file.WriteLine(t);

                file.Close();
            }
            catch (Exception)
            {
                throw new FileNotFoundException();
            }
        }
    }
}
